/**
 * Copyright 2018 asiainfo Inc.
 **/
package com.myz.service.feign.feign.impl;

import com.myz.service.feign.feign.ScheduleService;
import org.springframework.stereotype.Component;

/**
 * @author maoyz on 2018/9/7
 * @version: v1.0
 */
@Component
public class ScheduleServiceHystrix implements ScheduleService {

    /**
     * 发生断路时，触发
     */
    @Override
    public String index() {
        return "this is fegin error page";
    }

    @Override
    public String get(Integer id) {
        return "error";
    }

    @Override
    public String header(String secret, String username) {
        return "no header";
    }

    @Override
    public String error(String username) {
        return "hystrix error";
    }

    @Override
    public String url404() {
        return null;
    }
}
